package dataBase;
import java.util.List;

public class Code {

	public final static int CATEGORIES_NUMBER = 6;

	String codeId;
	String title;
	int majorVer = -1;
	String body;
	String uid;
	boolean visible;
	List<String> categories;
	String language;	
	
	public Code(String title, int majorVer, String language,
			String body, String uid, boolean visible, List<String> categories) {
		this.title = title;
		this.majorVer = majorVer;
		this.language = language;
		this.body = body;
		this.uid = uid;
		this.visible = visible;
		this.categories = categories;
	}
	public void setCodeId(String codeId) {
		this.codeId = codeId;
	}
	public String getCodeId() {
		return codeId;
	}
	public String getTitle() {
		return title;
	}
	public int getMajorVer() {
		return majorVer;
	}
	public String getBody() {
		return body;
	}
	public String getUid() {
		return uid;
	}
	public boolean isVisible() {
		return visible;
	}
	public List<String> getCategories() {
		return categories;
	}
	public String getLanguage() {
		return language;
	}
}
